<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnIsModifiedStateInStepProjectTable extends AbstractMigration
{
    public function up()
    {
        $this->table("step_project")
            ->addColumn('is_modified_state', 'enum', ['null' => false, 'comment' => '是否限制当前工序能否修改状态为已完成', "values" => 'no,yes', 'default' => 'no'])
            ->save();
    }

    public function down()
    {
        $this->table('step_project')
            ->removeColumn('is_modified_state')
            ->save();
    }
}
